(select-safe-coding-system): Use
authorKenichi Handa <handa@m17n.org>
Wed, 4 Feb 2009 07:44:03 +0000 (07:44 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 4 Feb 2009 07:44:03 +0000 (07:44 +0000)
buffer-chars-modified-tick instead of buffer-modified-tick.

lisp/international/mule-cmds.el

index cbed1e3659e2ca0bac9d9ad16339f28184de3047..451ac39cbfa09ac3eca67e41b3ecc64e4cc58fe4 100644 (file)
@@ -975,7 +975,7 @@ It is highly recommended to fix it before writing to a file."
 
     (let ((codings (find-coding-systems-region from to))
          (coding-system nil)
-         (tick (if (not (stringp from)) (buffer-modified-tick)))
+         (tick (if (not (stringp from)) (buffer-chars-modified-tick)))
          safe rejected unsafe)
       (if (eq (car codings) 'undecided)
          ;; Any coding system is ok.
@@ -1041,7 +1041,7 @@ It is highly recommended to fix it before writing to a file."
 %s specified by file contents.  Really save (else edit coding cookies \
 and try again)? " coding-system auto-cs))
              (error "Save aborted"))))
-      (when (and tick (/= tick (buffer-modified-tick)))
+      (when (and tick (/= tick (buffer-chars-modified-tick)))
        (error "Cancelled because the buffer was modified"))
       coding-system)))